namespace Test
{
    class SphereComponent: Component
    {
        public DelTrigger OnBeginTrigger;
        public SphereComponent(GameObject owner)
        :base(owner)
        {
            Console.WriteLine("SphereComponent: Construction");
            OnBeginTrigger = new DelTrigger(SphereComponent.DeIVoid);  // 给的是函数对象
        }

        override public void Start()
        {
            Console.WriteLine("SphereComponent: Start");
        }

        override public void Update()
        {
            Console.WriteLine("SphereComponent: Update");
            OnBeginTrigger(10);
        }

        static public void DeIVoid(int val)
        {

        }
    }
}